/**
 * Alibaba.com.cn Inc.
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package com.starlink.common.enums;

import org.apache.commons.lang3.StringUtils;

/**
 * @author zhanghong
 * @version TerminalEnum.java, v 0.1 2024/3/10 20:16 下午 TerminalEnum Exp $$
 */
public enum TerminalEnum {

    PC,
    WECHAT
    ;

    public static TerminalEnum getByName(String name) {
        if (StringUtils.isEmpty(name)) {
            return null;
        }

        for (TerminalEnum value : values()) {
            if (StringUtils.equals(value.name(), name)) {
                return value;
            }
        }
        return null;
    }
}
